package entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class IpAddress implements Serializable {
	@Id private String ip;
	
	@Unindexed
	private String countryCode = "";
	
	@Unindexed
	private String countryCode3 = "";
	
	@Unindexed
	private String countryName = "";
	
	@Unindexed
	private String city = "";
	
	@Unindexed
	private String continentCode = "";
	
	@Unindexed
	private String latitude = "";
	
	@Unindexed
	private String longitude = "";
	
	@Unindexed
	private String whoisIp = "";
	
	@Unindexed private Date date = new Date();
	
	@Unindexed private List<String> domains = new ArrayList<String>();
	
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getCountryCode3() {
		return countryCode3;
	}

	public void setCountryCode3(String countryCode3) {
		this.countryCode3 = countryCode3;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getContinentCode() {
		return continentCode;
	}

	public void setContinentCode(String continentCode) {
		this.continentCode = continentCode;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getWhoisIp() {
		return whoisIp;
	}

	public void setWhoisIp(String whoisIp) {
		this.whoisIp = whoisIp;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public List<String> getDomains() {
		return domains;
	}

	public void setDomains(List<String> domains) {
		this.domains = domains;
	}
	
}
